package com.cobra;

import java.util.Properties;

public class SystemTest {
    public static void main(String[] args) {
        Properties properties = System.getProperties();
        properties.forEach((key,value)->{
            System.out.println(String.format("%s-----%s",key,value));
        });

        System.out.println(System.getProperty("user.name"));
        System.out.println(System.getProperty("java.home"));
    }
}
